package com.ruoyi.common.core.domain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 房源信息对象 housing
 * 
 * @author ruoyi
 * @date 2024-05-15
 */
public class Housing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房源主键 */
    private Long id;

    /** 房源信息 */
    @Excel(name = "房源信息")
    private String houseInformation;

    /** 房源编号 */
    @Excel(name = "房源编号")
    private String houseNumber;

    /** 委托人 */
    @Excel(name = "委托人")
    private String contact;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    /** 房源状态  0空置中 1已出租 2已卖出 3审核未通过 4 待审核 5审核通过 */
    @Excel(name = "房源状态  0空置中 1已出租 2已卖出 3审核未通过 4 待审核 5审核通过")
    private Long houseStatus;

    /** 房源描述 */
    @Excel(name = "房源描述")
    private String houseDesc;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHouseInformation(String houseInformation) 
    {
        this.houseInformation = houseInformation;
    }

    public String getHouseInformation() 
    {
        return houseInformation;
    }
    public void setHouseNumber(String houseNumber) 
    {
        this.houseNumber = houseNumber;
    }

    public String getHouseNumber() 
    {
        return houseNumber;
    }
    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }
    public void setHouseStatus(Long houseStatus) 
    {
        this.houseStatus = houseStatus;
    }

    public Long getHouseStatus() 
    {
        return houseStatus;
    }
    public void setHouseDesc(String houseDesc) 
    {
        this.houseDesc = houseDesc;
    }

    public String getHouseDesc() 
    {
        return houseDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseInformation", getHouseInformation())
            .append("houseNumber", getHouseNumber())
            .append("contact", getContact())
            .append("mobile", getMobile())
            .append("created", getCreated())
            .append("updated", getUpdated())
            .append("houseStatus", getHouseStatus())
            .append("houseDesc", getHouseDesc())
            .toString();
    }
}
